import request from '@/utils/request'
const api_name = '/admin/product/'

export default {
  getList(category1Id, category2Id, category3Id) {
    return request.get(
      `${api_name}/attrInfoList/${category1Id}/${category2Id}/${category3Id}`
    )
  },

  delete(attrId) {
    return request.delete(`${api_name}/deleteAttr/${attrId}`)
  },

  getValueList(attrId) {
    return request.get(`${api_name}/getAttrValueList/${attrId}`)
  },

  addOrUpdate(attr) {
    return request.post(`${api_name}/saveAttrInfo`, attr)
  }
}
